<?php

namespace common\models\projectcontract;

use Yii;

/**
 * This is the model class for table "project_contract".
 *
 * @property integer $id
 * @property string $number
 * @property string $name
 * @property string $cname
 * @property integer $category
 * @property string $management
 * @property string $bearunit
 * @property integer $starttime
 * @property integer $endtime
 * @property string $bear_property
 * @property string $part_unit
 * @property string $bear_address
 * @property string $bear_postcode
 * @property string $unit_leader
 * @property string $unit_profession
 * @property string $unit_telephone
 * @property string $unit_mobile
 * @property string $unit_email
 * @property string $unit_fax
 * @property string $proj_leader
 * @property string $proj_profession
 * @property string $proj_telephone
 * @property string $proj_mobile
 * @property string $proj_email
 * @property string $proj_fax
 * @property string $proj_target
 * @property string $main_task
 * @property integer $schedule_budget
 * @property string $schedule_target
 * @property integer $schedule_starttime
 * @property integer $schedule_endtime
 * @property string $paid_content
 * @property string $paid_money
 * @property string $paid_note
 * @property string $calculation_basis
 * @property string $mainpart_name
 * @property integer $mainpart_age
 * @property string $mainpart_profession
 * @property string $mainpart_unit
 * @property string $mainpart_mainwork
 * @property string $common_clause
 * @property string $account_name
 * @property string $bank_deposit
 * @property string $bank_account
 * @property string $fina_leader
 * @property string $depart_leader
 */
class ProjectContract extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_contract';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['number', 'name', 'bear_property', 'part_unit', 'bear_address', 'bear_postcode', 'schedule_budget', 'schedule_target', 'schedule_starttime', 'schedule_endtime', 'paid_content', 'paid_money', 'paid_note', 'calculation_basis', 'mainpart_name', 'mainpart_age', 'mainpart_profession', 'mainpart_unit', 'mainpart_mainwork', 'common_clause', 'account_name', 'bank_deposit', 'bank_account', 'fina_leader', 'depart_leader'], 'required'],
            [['category'], 'integer'],
            [['number', 'name', 'cname', 'management', 'bearunit', 'bear_property', 'part_unit', 'bear_address', 'bear_postcode', 'unit_leader', 'unit_profession', 'unit_telephone', 'unit_mobile', 'unit_email', 'unit_fax', 'proj_leader', 'proj_profession', 'proj_telephone', 'proj_mobile', 'proj_email', 'proj_fax', 'proj_target', 'main_task', 'schedule_target', 'paid_content', 'paid_note', 'calculation_basis', 'mainpart_name', 'mainpart_profession', 'mainpart_unit', 'mainpart_mainwork', 'common_clause', 'account_name', 'bank_deposit', 'bank_account', 'fina_leader', 'depart_leader', 'paid_money', 'schedule_budget', 'schedule_starttime', 'schedule_endtime', 'mainpart_age'], 'string', 'max' => 255],
            [['starttime', 'endtime'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'number' => Yii::t('app', '项目编号'),
            'name' => Yii::t('app', '项目名称'),
            'cname' => Yii::t('app', '子项目名称'),
            'category' => Yii::t('app', '项目类型'),
            'management' => Yii::t('app', '项目归口管理部门'),
            'bearunit' => Yii::t('app', '项目承担单位'),
            'starttime' => Yii::t('app', '开始时间'),
            'endtime' => Yii::t('app', '结束时间'),
            'bear_property' => Yii::t('app', '单位性质'),
            'part_unit' => Yii::t('app', '项目参加单位'),
            'bear_address' => Yii::t('app', '承担单位地址'),
            'bear_postcode' => Yii::t('app', '邮政编码'),
            'unit_leader' => Yii::t('app', '单位负责人'),
            'unit_profession' => Yii::t('app', '职称/职务'),
            'unit_telephone' => Yii::t('app', '联系电话'),
            'unit_mobile' => Yii::t('app', '手机'),
            'unit_email' => Yii::t('app', '电子邮件'),
            'unit_fax' => Yii::t('app', '传真'),
            'proj_leader' => Yii::t('app', '项目负责人'),
            'proj_profession' => Yii::t('app', '职称/职务'),
            'proj_telephone' => Yii::t('app', '联系电话'),
            'proj_mobile' => Yii::t('app', '手机'),
            'proj_email' => Yii::t('app', '电子邮件'),
            'proj_fax' => Yii::t('app', '传真'),
            'proj_target' => Yii::t('app', '项目总目标'),
            'main_task' => Yii::t('app', '主要工作任务和考核指标'),
            'schedule_budget' => Yii::t('app', '计划进度经费预算'),
            'schedule_target' => Yii::t('app', '目标内容'),
            'schedule_starttime' => Yii::t('app', '开始时间'),
            'schedule_endtime' => Yii::t('app', '结束时间'),
            'paid_content' => Yii::t('app', '支出内容'),
            'paid_money' => Yii::t('app', '金额(万元)'),
            'paid_note' => Yii::t('app', '备注'),
            'calculation_basis' => Yii::t('app', '测算依据'),
            'mainpart_name' => Yii::t('app', '主要参加人员姓名'),
            'mainpart_age' => Yii::t('app', '年龄'),
            'mainpart_profession' => Yii::t('app', '职称/职务'),
            'mainpart_unit' => Yii::t('app', '工作单位'),
            'mainpart_mainwork' => Yii::t('app', '主要工作'),
            'common_clause' => Yii::t('app', '共同条款'),
            'account_name' => Yii::t('app', '开户名称'),
            'bank_deposit' => Yii::t('app', '开户银行'),
            'bank_account' => Yii::t('app', '银行账号'),
            'fina_leader' => Yii::t('app', '财务部门负责人'),
            'depart_leader' => Yii::t('app', '部门负责人'),
        ];
    }
}
